package com.kiwilss.aopdemo.startup

import android.content.Context
import android.util.Log
import com.kiwilss.aopdemo.utils.LogUtils
import com.rousetime.android_startup.AndroidStartup
import com.rousetime.android_startup.Startup

/**
 * @author : Administrator
 * e-mail : kiwilss@163.com
 * time   : 2021/02/04
 *  desc   :
 */
class SampleFirstStartup : AndroidStartup<String>() {

    override fun callCreateOnMainThread(): Boolean = true
    override fun waitOnMainThread(): Boolean = false
    override fun create(context: Context): String? {
        Log.e("MMM","SampleFirstStartup")
        LogUtils.init(context)
        return this.javaClass.simpleName
    }


    override fun dependencies(): List<Class<out Startup<*>>>? {
        return super.dependencies()
    }
}